<template>
  <div>
    <!-- 添加按钮 -->
    <el-button @click="willAdd" type="primary">添加</el-button>
    <!-- 表格 -->
    <!-- 6.绑定自定义事件 willUpdate  -->
    <!-- 6.3 arr传递给list  -->
    <list-vue @willUpdate="willUpdate"></list-vue>

    <!-- 弹框 -->
    <!-- 3.将info传递给form  -->
    <!-- 6.4 arr传递给form  -->
    <!-- 6.5 绑定自定义事件 init -->
    <form-vue :info="info" ref="form"></form-vue>
  </div>
</template>
<script>
import listVue from "./components/list.vue";
import formVue from "./components/form.vue";
import { toggle } from "../../mixins";
export default {
  components: {
    listVue,
    formVue,
  },

  mixins: [toggle],
 
};
</script>
<style scoped lang="less">
@import "../../less/index.less";
</style>